/*
*	File: MaxMaterialExporter.cpp
*	Date: 12/14/2011
*	Author: Ivan Gao
*	Desc:
*/
#include "CommonDef.h"
#include "MaxMaterialExporter.h"
#include "Exporter.h"
SMaxMaterialExporter::SMaxMaterialExporter ()
{

}

SMaxMaterialExporter::~SMaxMaterialExporter ()
{

}

const TCHAR * SMaxMaterialExporter::AuthorName()
{
	return _T("Ivan Gao");
} // AuthorName

const TCHAR * SMaxMaterialExporter::CopyrightMessage()
{
	return _T("Copyright (C) 2011 Bruno Ivan Gao");
} // CopyrightMessage

int SMaxMaterialExporter::DoExport(const TCHAR *name, ExpInterface *ei, Interface *i, BOOL suppressPrompts, DWORD options)
{
	SExporter exporter (ei, i);
	if (!exporter.ExportMaterial(name))
	{
		return false;
	}
	return true;
} // DoExport

const TCHAR * SMaxMaterialExporter::Ext (int i)
{
	switch (i)
	{
	case 0:
		{
			return _T("crf");
		}
		break;
	default:
		return "";
	} // switch
	return "";
} // SMaxMaterialExporter

int SMaxMaterialExporter::ExtCount ()
{
	return 1;
} // ExtCount

const TCHAR * SMaxMaterialExporter::LongDesc()
{
	return _T("SimpleAnimation Material file");
} // LongDesc

const TCHAR * SMaxMaterialExporter::ShortDesc()
{
	return _T("SimpleAnimation Material file");
} // ShortDesc

const TCHAR * SMaxMaterialExporter::OtherMessage1()
{
	return _T("");
} // OtherMessage1

const TCHAR * SMaxMaterialExporter::OtherMessage2()
{
	return _T("");
} // OtherMessage2

void SMaxMaterialExporter::ShowAbout(HWND hWnd)
{

} // ShowAbout

unsigned int SMaxMaterialExporter::Version ()
{
	return SimpleAnimation::MATERIAL_FILE_VERSION;
} // Version






